//
//  ColorMacro.h
//  TooToo
//
//  Created by liuning on 15/12/21.
//  Copyright © 2015年 MoHao. All rights reserved.
//

#ifndef ColorMacro_h
#define ColorMacro_h

//16进制转RGB
#define UIColorFromRGB(rgbValue) [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 green:((float)((rgbValue & 0xFF00) >> 8))/255.0 blue:((float)(rgbValue & 0xFF))/255.0 alpha:1.0]
//16进制转RGB加透明度
#define UIColorFromRGBA(rgbValue,a) [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 green:((float)((rgbValue & 0xFF00) >> 8))/255.0 blue:((float)(rgbValue & 0xFF))/255.0 alpha:a]

/*
 *   日常用色
 */
//纯白
#define COLOR_WHITE                 UIColorFromRGB(0xFFFFFF)
//黄色
#define COLOR_YELLOW                UIColorFromRGB(0xffbe5f)
//浅灰
#define COLOR_LIGHT_GRAY            UIColorFromRGB(0x929292)
//深灰
#define COLOR_DARK_GRAY             UIColorFromRGB(0x454545)
//页面背景浅灰色
#define COLOR_BACKGROUND_GRAY       UIColorFromRGB(0xF5F6FA)
//文字黑，接近纯黑色
#define COLOR_TEXT_BLACK            UIColorFromRGB(0x454545)
//文字灰
#define COLOR_TEXT_GRAY             UIColorFromRGB(0x696969)
//占位符浅灰色
#define COLOR_PLACEHODER            UIColorFromRGB(0xb9b9b9)

//黑色透明遮罩
#define COLOR_BLACK_TRANSPARENCY    UIColorFromRGBA(0x000000,0.4)
//不可点击字体颜色
#define COLOR_DISABLE_GRAY          UIColorFromRGBA(0xb9b9b9,0.5)


/*
 *   FBee用色规范
 */

//主题色
#define FBEE_COLOR_THEME            UIColorFromRGB(0x584F60)
//辅助色
#define FBEE_COLOR_ASSISTANT        UIColorFromRGB(0xFDE624)
//非选中&不可点
#define FBEE_COLOR_UNTOUCH          UIColorFromRGB(0xC6C5CC)
//占位
#define FBEE_COLOR_PLACEHOLDER      UIColorFromRGB(0xEEEDF3)
#define FBEE_COLOR_BACKGROUND       UIColorFromRGB(0xFFFFFF)
#define FBEE_COLOR_AS_BACKGROUND    UIColorFromRGB(0xF2F4F4)
#define FBEE_COLOR_NAVBACKGROUND    UIColorFromRGA(0xF8F8F8,0.82)
#define FBEE_COLOR_LARGETITLE       UIColorFromRGB(0x584F60)
#define FBEE_COLOR_TEXT             UIColorFromRGB(0x4A4A4A)
#define FBEE_COLOR_INFO             UIColorFromRGB(0x9B9B9B)
#define FBEE_COLOR_LINE             UIColorFromRGB(0xE4EAEA)
#define FBEE_COLOR_BLUE             UIColorFromRGB(0x4A90E2)


#endif /* ColorMacro_h */
